﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Entity;
using FluentNHibernate.Mapping;


namespace PropertyManagement.Domain.Mapping.FluentHibernate
{
    public class RefundMap : ClassMap<Refund>
    {
        public RefundMap()
        {
            Table("Refund");
            Id(x => x.ID).Column("ID").GeneratedBy.Identity();
            //References(x => x.JobBooking).Column("JobBookingID").Cascade.All();
            Map(x => x.RefundAmount).Column("RefundAmount");
            //Map(x => x.CreatedBy).Column("CreatedBy");
            Map(x => x.CreatedDate).Column("CreatedDate");
            //Map(x => x.UpdatedBy).Column("UpdatedBy");
            Map(x => x.UpdatedDate).Column("UpdatedDate");
        }
    }
}
